-- GENERATED SPELL FOR [Blackrock Slayer] --


function spell0_7027(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7027', 0, 1)
end

function spell1_7027(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7027', 10254, 1)
end

function Sorts_7027(pUnit, Event)
local choix_sorts_7027 = math.random(0, 1)
if choix_sorts_7027 == 0 then
pUnit:RegisterEvent('spell0_7027', 1, 1)
end
if choix_sorts_7027 == 1 then
pUnit:RegisterEvent('spell1_7027', 1, 1)
end
end

function mob7027_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7027', math.random(1500, 3000), 1)
end

function mob7027_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7027_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7027_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7027, 1, 'mob7027_Action')
RegisterUnitEvent(7027, 2, 'mob7027_Leave')
RegisterUnitEvent(7027, 3, 'mob7027_Kill')
RegisterUnitEvent(7027, 4, 'mob7027_Die')
